import {TEXT_DATA} from "../actionType"

let essay = "";
export let textReducer = (state = essay,action)=>{
    console.log(state)
    switch (action.type) {
        case TEXT_DATA:
            return {...state,state:action.data}
            break;
    
        default:
            return state
            break;
    }
}